package com.dancw.user.web.basic.fade;

import com.dancw.user.model.basic.BasicUserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 但成王
 * @create 2018-11-02 00:08
 */

@FeignClient("user-service")
public interface UserBasicServiceFade {

    @RequestMapping(value = "/user/basic/list",method = RequestMethod.POST)
    List<BasicUserDTO> queryList(@RequestParam(value = "userId") Long userId);
}
